using System;

 namespace ClassEntities 
{
	 [Serializable]
	 public class tblLoaiCauHoi
	{
	private int stt;
	private string ten;
	public tblLoaiCauHoi()
	{}
	public tblLoaiCauHoi(int stt,string ten)
	{
	this.stt = stt;
	this.ten = ten;
	}
	public int Stt{
	get { return this.stt;}
	set { if(value==null) 
		throw new Exception("stt not allow nullvalue.");
		this.stt=value;
	}	}
	public string Ten{
	get { return this.ten;}
	set {this.ten=value;}
	}
	public override string ToString(){
	return this.stt+"; "+this.ten+"; ";
	}
	public override bool Equals(Object obj)
	{
	tblLoaiCauHoi me=(tblLoaiCauHoi)obj;
	bool ret=this.Stt.Equals(me.Stt);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.Stt.GetHashCode();
	}

	}
} 